// 箭头函数与 this

const person = {
    name: 'tom',
    sayHi: () => {
        console.log(`hi my name is ${this.name}`)
    },
    sayHiAsync: function() {
        setTimeout(() => {
            console.log(this.name)
        }, 1000);
    }
}

person.sayHiAsync()